import service from '@/utils/request'

export const usePatientDrugApi = (id: Number) => {
	return service.get('/sys/patientdrug/' + id)
}

export const usePatientDrugSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/patientdrug', dataForm)
	} else {
		return service.post('/sys/patientdrug/save', dataForm)
	}
}

export const usePatientDrugListApi = (dataForm: any) => {
	return service.post('/sys/patientdrug/list', dataForm)
}
export const usePatientDrugselListApi = (dataForm: any) => {
	return service.post('/sys/patientdrug/sellist', dataForm)
}